package com.winsdom.anno;

import com.winsdom.valid.ExpenditureValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = ExpenditureValidator.class)
public @interface ValidExpenditure {
    String message() default "字段校验失败";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}
